package com.wx.day10.pojo;

import jdk.jfr.DataAmount;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
//springboot批量读取
@ConfigurationProperties(prefix = "tg.user")
@Data
@Component
public class User {
    private String name;
    private Integer age;
}
